package com.project.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * @ProjectName: 
 * @Package: 
 * @ClassName: 
 * @Author: ZhaoLongShi
 * @CreateDate: 
 */
/**
    * 发票表
    */
@Data
@TableName(value = "receipt")
public class Receipt {
    /**
     * 发票id
     */
    @TableId(value = "r_id", type = IdType.ASSIGN_ID)
    private Integer rId;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 订单编号
     */
    @TableField(value = "order_number")
    private String orderNumber;

    /**
     * 桌号
     */
    @TableField(value = "table_number")
    private Integer tableNumber;

    /**
     * 下单时间
     */
    @TableField(value = "order_time")
    private Date orderTime;

    /**
     * 总价
     */
    @TableField(value = "total")
    private Double total;

    /**
     * 折扣
     */
    @TableField(value = "discount")
    private Double discount;

    /**
     * 实际支付
     */
    @TableField(value = "actually_paid")
    private Double actuallyPaid;

    /**
     * 致谢词(欢迎莫莫莫用户光临)
     */
    @TableField(value = "conclusion")
    private String conclusion;

    /**
     * 口味,1代表微辣，2代表中辣，3代表特辣(可选)
     */
    private Integer taste;

    /**
     * 份额,1代表小份，2代表中份，3代表大份（可选）
     */
    private Integer share;

    /**
     * 伪删除
     */
    private int isDelete;

    public static final String COL_R_ID = "r_id";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_ORDER_NUMBER = "order_number";

    public static final String COL_TABLE_NUMBER = "table_number";

    public static final String COL_ORDER_TIME = "order_time";

    public static final String COL_TOTAL = "total";

    public static final String COL_DISCOUNT = "discount";

    public static final String COL_ACTUALLY_PAID = "actually_paid";

    public static final String COL_CONCLUSION = "conclusion";
}